﻿#include "batteryinfowidget.h"
#include "ui_batteryinfowidget.h"

BatteryInfoWidget::BatteryInfoWidget(QWidget *parent) :
    QWidget(parent),
    ui(new Ui::BatteryInfoWidget)
{
    ui->setupUi(this);
}

BatteryInfoWidget::~BatteryInfoWidget()
{
    delete ui;
}

void BatteryInfoWidget::setData(QByteArray data, int len)
{
    ui->maxVoltage->setText("1");
}

void BatteryInfoWidget::RecvData(QByteArray databuf, int datalen)
{
    ui->maxVoltage->setText("1000");

}
